package cn.ym.ymcc.feign;



import cn.ym.ymcc.fallback.MediaFeignFallbackFactory;
import cn.ym.ymcc.result.JSONResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;


@FeignClient(name = "service-media",fallbackFactory = MediaFeignFallbackFactory.class)
public interface MediaServerFeign {

    @GetMapping(value = "/mediaFile/listByCourseId/{courseId}")
    public JSONResult listByCourseId(@PathVariable("courseId")Long courseId);
}
